package com.swu.pad.reflection.entity;

import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Type;
import org.springframework.format.annotation.DateTimeFormat;

//反思模板实体类
@Entity
@Table(name = "sentence")
public class SentenceClass {

	@Id
	@GeneratedValue(generator = "uuid")
	@GenericGenerator(name = "uuid", strategy = "uuid")
	@Column(name = "id")
	private String id;//句子id
	//句子内容  断句后
    @Lob 
	@Basic(fetch = FetchType.LAZY) 
	@Type(type="text")
	@Column(name = "sentence_content")
	private String content;
	//句子类别
	@Column(name = "sentence_class")
	private String sentenceClass;
	//文章的版本号  存储最新的版本号  根据版本号 就可以得知 有没有修改 过，如果修改过就  重新保存 一篇文章的所有句子
	@Column(name = "versionNum")
	private String versionNum;
	//该句子类别 是否 被学生接受，是否做过修改  ，默认 cpu  ，如果学生修改 则替换  stu
	@Column(name = "marker")
	private String marker;
	//学生的padId，也相当于 文章的id  默认文章不会变，一个作业只会有一个padid
	@Column(name = "padId")
	private String padId;
	//学生的id
	@Column(name = "student_id")
	private String stuId;
	//打分的活动id
	@Column(name = "activityId")
	private String activityId;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getSentenceClass() {
		return sentenceClass;
	}
	public void setSentenceClass(String sentenceClass) {
		this.sentenceClass = sentenceClass;
	}
	public String getVersionNum() {
		return versionNum;
	}
	public void setVersionNum(String versionNum) {
		this.versionNum = versionNum;
	}
	public String getMarker() {
		return marker;
	}
	public void setMarker(String marker) {
		this.marker = marker;
	}
	public String getPadId() {
		return padId;
	}
	public void setPadId(String padId) {
		this.padId = padId;
	}
	public String getStuId() {
		return stuId;
	}
	public void setStuId(String stuId) {
		this.stuId = stuId;
	}
	public String getActivityId() {
		return activityId;
	}
	public void setActivityId(String activityId) {
		this.activityId = activityId;
	}
	
	@Override
	public String toString() {
		return "SentenceClass [id=" + id + ", content=" + content + ", sentenceClass=" + sentenceClass + ", versionNum="
				+ versionNum + ", marker=" + marker + ", padId=" + padId + ", stuId=" + stuId + ", activityId="
				+ activityId + "]";
	}
		
	
	
	
	
	
	
	

}
